package com.ityangxu.langchain4j.Assistant;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(
        wiringMode = EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatMemoryProviderYIYANTANG",
        tools = "appointmentTools"
        /*contentRetriever = "contentRetrieverXiaoyang"*/ //配置向量存储
)
public interface YIYANTANGAgent {
        @SystemMessage(fromResource = "yiyantang-prompt-template.txt")
        String chat(@MemoryId Long memoryId, @UserMessage String userMessage);

}
